package com.dsh.userLogin.service.impl;
import com.dsh.userLogin.dao.AdminLoginDao;
import com.dsh.userLogin.entity.BackstageUser;
import com.dsh.userLogin.entity.vo.LoginParams;
import com.dsh.userLogin.service.AdminLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminLoginImpl implements AdminLoginService {
    @Autowired
    AdminLoginDao adminLoginDao;
//    @Override
//    public List<LoginParams> selectAdminUsernameAndPassword() {
//        List<LoginParams> loginParams = adminLoginDao.selectAdminUsernameAndPassword();
//        return loginParams;
//    }

    @Override
    public BackstageUser selectForAdminUsernameAndPassword(LoginParams loginParams) {

        BackstageUser backstageUser = adminLoginDao.selectForAdminUsernameAndPassword(loginParams);
        return backstageUser;
    }
}
